import { ApiProperty } from "@nestjs/swagger";
import { Goods } from "src/entity/Goods";

/**
 * 商品dto
 */
export class GoodsDto extends Goods{
    
    constructor(originGoodsCode?: string) {
        super();
        this.originGoodsCode = originGoodsCode;
    }

    @ApiProperty({description: "原始商品编码"})
    originGoodsCode: string;

    @ApiProperty({description: "商品编码list"})
    goodsCodeList: string[];

    @ApiProperty({description: "进出货标识：IN-进货、OUT-出货"})
    inOrOut: string

}